package com.mvvm.ktnet.retention

import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy

/**
 *
 * @ProjectName:    KtNet
 * @Package:        com.mvvm.ktnet.retention
 * @ClassName:      ViewModelRetention
 * @Description:     java类作用描述
 * @Author:         Alex
 * @CreateDate:     2020/11/16 8:51
 * @UpdateUser:     更新者：
 * @UpdateDate:     2020/11/16 8:51
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */
/**
 * @method
 * @description 注解获取activity的viewmodel
 * @date: 2020/11/16 8:52
 * @author: Alex
 * @param
 * @return
 */
@Target(AnnotationTarget.FIELD) //字段、枚举的常量
@Retention(RetentionPolicy.RUNTIME)
annotation class ViewModelActivity


/**
 * @method
 * @description 注解获取fragment的viewmodel
 * @date: 2020/11/16 8:52
 * @author: Alex
 * @param
 * @return
 */
@Target(AnnotationTarget.FIELD) //字段、枚举的常量
@Retention(RetentionPolicy.RUNTIME)
annotation class ViewModelFragment

 /**
  * @method
  * @description 注解获取app的viewmodel
  * @date: 2020/11/16 8:52
  * @author: Alex
  * @param
  * @return
  */
@Target(AnnotationTarget.FIELD) //字段、枚举的常量
@Retention(RetentionPolicy.RUNTIME)
annotation class ViewModelApp